<?php
include('db.php');
$db = getDbWithoutControll();

 
 if($_GET["eventid"] && $_GET["emailid"])
 {
 	$sqlCommand="INSERT INTO unsub(eventid,emailid) values('".
 			$_GET["eventid"] . "','". $_GET["emailid"] ."') ";
 	$result = $db->Execute($sqlCommand);
 	
 	if ($result === false)
 		die($sqlCommand);
 }
 	/*
 while (!$result->EOF) {
    for ($i=0, $max=$result->FieldCount(); $i < $max; $i++)
           print $result->fields[$i].' ';
    $result->MoveNext();
    print "<br>";
 } */


 $content = str_replace($_INFO_ , $_INFO_content, $content);
 
 
 
 // Display page
 echo "Unsubscribed !";
 
?>
